package com.yeshine.opendata.core;

/**
 * Created by taohj on 2014/5/16.
 */
public class AppException extends  RuntimeException {

    private   int status=1;


    private  String message;





    public AppException() {
    }




    public AppException(int status,String message) {
        this.status=status;
        this.message = message;
    }



    public AppException(String message) {
        this.message = message;
    }



    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }


    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }


    public  String toString(){
        return "{status:"+status+",message:\""+message+"\"}";
    }
}
